<gn-dialog title="组织机构信息">
  <form gnForm url="/RESOURCES-SERVICE/organizations" [formGroup]="form.formGroup">
    <gn-form-field label="名称" field="name" [formGroup]="form.formGroup"
                   [validators]="[{message: '请输入', name: 'required', validatorFn: form.validators.required}]">
      <input matInput placeholder="请输入名称" required="true" formControlName="name">
    </gn-form-field>
    <gn-form-field label="类型" field="type" [formGroup]="form.formGroup"
                   [validators]="[{message: '请输入', name: 'required', validatorFn: form.validators.required}]">
      <input matInput placeholder="请输入类型" required="true" formControlName="type">
    </gn-form-field>
    <gn-form-field label="显示顺序" field="showOrder" [formGroup]="form.formGroup"
                   [validators]="[{message: '请输入', name: 'required', validatorFn: form.validators.required}]">
      <input matInput placeholder="请输入显示顺序" required="true" formControlName="showOrder">
    </gn-form-field>
    <gn-form-field label="ID" field="id" [visible]="false"></gn-form-field>
    <gn-form-field label="ParentID" field="parentId" [visible]="false"></gn-form-field>
    <gn-form-field label="PathId" field="pathId" [visible]="false"></gn-form-field>
    <gn-form-field label="ParentPath" field="parentPath" [visible]="false"></gn-form-field>
  </form>
</gn-dialog>
